package com.gms.service.impl;

import java.util.List;

import com.gms.dao.ProductDao;
import com.gms.domain.Product;
import com.gms.service.ProductService;

public class ProductServiceImpl implements ProductService{

	private ProductDao productDao;
	
	public ProductDao getProductDao() {
		return productDao;
	}

	public void setProductDao(ProductDao productDao) {
		this.productDao = productDao;
	}

	@Override
	public List findAllProductByBigProperty(String bigProperty) {
		// TODO Auto-generated method stub
		return productDao.findAllProductByBigProperty(bigProperty);
	}

	@Override
	public List<Product> findAllProductByProperty(String property) {
		// TODO Auto-generated method stub
		return productDao.findAllProductByProperty(property);
	}

	@Override
	public Product findProductById(Integer productId) {
		// TODO Auto-generated method stub
		return productDao.findById(productId);
	}

	@Override
	public List<Product> findProductByState(String state) {
		return productDao.findProductByState(state);
	}

	@Override
	public void update(Product product) {
		// TODO Auto-generated method stub
		productDao.update(product);
	}

	@Override
	public List<Product> findAllRealProductByBigProperty(String bigProperty) {
		// TODO Auto-generated method stub
		return productDao.findAllRealProductByBigProperty(bigProperty);
	}
	@Override
	public List<Product> findProductByProductName(String productName) {
		// TODO Auto-generated method stub
		return productDao.findProductByProductName(productName);
	}

}
